package com.sc.nft.entity.vo.mall;



import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class ProductValuationVO {

    @ApiModelProperty("商品总价格")
    private String totalPrice;
    @ApiModelProperty("最大购买数量")
    private Integer maxCount;

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
